import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import config from './config'
import i18n from './locale'
import Bridge from './libs/bridge'
import 'lib-flexible'
import FastClick from 'fastclick'

FastClick.attach(document.body);

import {
    NavBar,
    Toast,
    Row,
    Col,
    Divider,
    Field,
    Button,
    Notify,
    Icon,
    Image,
    PullRefresh,
    List,
    ImagePreview,
    Dialog,
    Loading,
    Overlay
} from 'vant';

Vue.use(NavBar).use(Row).use(Col).use(Toast).use(Divider).use(Field).use(Button).use(Notify).use(Icon).use(Image).use(PullRefresh).use(List).use(ImagePreview).use(Dialog).use(Loading).use(Overlay);
Vue.prototype.$bridge = Bridge;
Vue.config.productionTip = false;
Vue.prototype.$config = config;
new Vue({
    router,
    store,
    i18n,
    render: h => h(App)
}).$mount('#app');
